from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic import CreateView

from .models import User
from .forms import UserForm, GenderForm

# Create your views here.
# class AddUserView(CreateView):
#     model = User
#     form_class = UserForm
#     success_url = reverse_lazy("logs:add_user")

def add_user(request):
    context = {}
    context['form'] = UserForm()
    return render(request, 'logs/add_user.html', context)